/*
 * @Author: 张腾越
 * @Date: 2024-12-22 13:50:24
 * @LastEditors: 张腾越
 * @LastEditTime: 2024-12-31 09:35:07
 * @Description:
 * @FilePath: \vue3_admin_template\src\store\modules\types\type.ts
 */
import { RouteRecordRaw } from 'vue-router'
import type { CategoryObj } from '@/api/product/attr/type'
//定义小仓库数据state类型
export interface UserState {
  token: string | null
  menuRoutes: RouteRecordRaw[]
  username: string
  avatar: string
}

//定义分类仓库state对象的ts类型
export interface CategoryState {
  c1Id: string | number
  c1Arr: CategoryObj[]
  c2Id: string | number
  c2Arr: CategoryObj[]
  c3Id: string | number
  c3Arr: CategoryObj[]
}
